//
//  MoreCell.m
//  shise
//
//  Created by 徐国庆 on 14/12/17.
//  Copyright (c) 2014年 apple. All rights reserved.
//

#import "MoreCell.h"

@implementation MoreCell

- (void)awakeFromNib {
    // Initialization code
    
}

// 初始化
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        self.myImageView = [[UIImageView alloc]init];
//        self.myImageView.backgroundColor = [UIColor brownColor];
        [self.contentView addSubview:self.myImageView];
        
        self.name = [[UILabel alloc] init];
        [self.contentView addSubview:self.name];
        
        self.instruction = [[UILabel alloc] init];
        [self.contentView addSubview:self.instruction];
        
        [_myImageView release];
        [_name release];
        [_instruction release];
        
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myImageView.frame = CGRectMake(5, 5, 70, 70);
    self.name.frame = CGRectMake(110, 10, 200, 20);
    self.instruction.frame = CGRectMake(110, 40, 200, 20);
}

- (void)dealloc
{
    [_myImageView release];
    [_name release];
    [_instruction release];
    [super dealloc];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
